package com.aopcinemas.cinema.model;

import jade.content.Concept;
import jade.core.AID;

import java.util.Date;
import java.util.List;

/**
 * 
 * @author Artjom Kruglenkov
 * @author Ilja Gaitsenja
 */
public class Schedule implements Concept {

    private static final long serialVersionUID = 1L;

    private long id;
    private Movie movie;
    private Hall hall;
    private Date date;
    private double basePrice;
    private List<Session> session;
    private AID cinema;

    public Schedule() {}

    public Schedule(Movie movie, Hall hall, Date date, double basePrice) {
        this.movie = movie;
        this.hall = hall;
        this.date = new Date(date.getTime());
        this.basePrice = basePrice;
    }

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public Movie getMovie() {
        return movie;
    }

    public void setMovie(Movie movie) {
        this.movie = movie;
    }

    public Hall getHall() {
        return hall;
    }

    public void setHall(Hall hall) {
        this.hall = hall;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public List<Session> getSession() {
        return session;
    }

    public void setSession(List<Session> session) {
        this.session = session;
    }

    public double getBasePrice() {
        return basePrice;
    }

    public void setBasePrice(double basePrice) {
        this.basePrice = basePrice;
    }

    public AID getCinema() {
        return cinema;
    }

    public void setCinema(AID cinema) {
        this.cinema = cinema;
    }

}
